<? if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<div class="menu fr content clearfix" id="leftLabel" <? if(ACTION_NAME == 'talk' || ACTION_NAME == 'fav' || ACTION_NAME == 'me' || ACTION_NAME == 'album') { ?> style="margin-top:-63px;" <? } ?> <? if(ACTION_NAME == 'message' || ACTION_NAME == 'follow'|| ACTION_NAME == 'fans' || ACTION_NAME == 'friends' || ACTION_NAME == 'msgview') { ?> style=" position:relative; float:right; top:auto; left:auto;"<? } ?>>
<h1><?=$home_user['user_name']?></h1>
    <p>
    	<a href="<?php echo FU('u/fans',array("uid"=>$home_uid)); ?>"><span><?=$home_user['fans']?></span>个粉丝</a>
        ,&nbsp; 
        <a href="<?php echo FU('u/follow',array("uid"=>$home_uid)); ?>">关注<span><?=$home_user['follows']?></span>人</a>
 	</p>
    <div id="ProfileImage">
    	<a href="<?php echo FU('u/album',array("uid"=>$home_uid)); ?>" title="<?=$home_user['user_name']?>" class="img x">
        	<img src="<?php echo avatar($home_uid,'b',1);?>" width="160" alt="<?=$home_user['user_name']?>" height="160"/>
       	</a>
        <? if($home_uid == $_FANWE['uid']) { ?>
        	<a href="<?php echo FU('settings/personal',array()); ?>" class="btn btn13 wbtn">
                <strong> 账号设置</strong>
                <span></span>
      		</a>
        <? } else { ?>
        	<? if(!$is_show_follow) { ?>
            	<a href="javascript:void(0)" id="followBtn" onclick="$.User_Follow(<?=$home_uid?>,this,UMenuUpdateUserFollow);" class="btn btn13 wbtn">
                    <strong> 取消关注</strong>
                    <span></span>
      			</a>
            <? } else { ?>
            	<a href="javascript:void(0)" id="followBtn" onclick="$.User_Follow(<?=$home_uid?>,this,UMenuUpdateUserFollow);" class="btn btn13 wbtn">
                    <strong>关注</strong>
                    <span></span>
      			</a>
            <? } ?>
        <? } ?>
  	</div>
</div>
<script type="text/javascript">

function UMenuUpdateUserFollow(obj,result)
{

if(result.status == 1)
{

$(obj).removeClass("concern-ico").addClass("concerned-ico").children("span").children("em").html("已关注");
}
else
{
$(obj).removeClass("concerned-ico").addClass("concern-ico").children("span").children("em").html("关注");
}
}
</script>